
var app = new Vue({
	el: "#app",
	data:{
		city:'',
	},
	methods:{
		searchWeather:function(){
			console.log("天气查询");
			console.log(this.city);
			
			//调用接口
			// axios.get("http://wthrcdn.etouch.cn/weather_mini?city="+this.city)
			.then(function(response){
				consoel.log(response);
				consoel.log(response.data.data.forecast);
			})
			.catch(function(err){
				console.log(err);
			})
		}
		
	}
})